package com.jsh.erp.controller;

import com.jsh.erp.datasource.entities.*;
import com.jsh.erp.datasource.vo.AccountItemVo4List;
import com.jsh.erp.datasource.vo.DepotHeadVo4List;
import com.jsh.erp.utils.BaseResponseInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author wy
 * @title: SwaggerController
 * @projectName JSH_ERP
 * @description:
 * @date 2022-12-09 11:33
 */
@RestController
@RequestMapping(value = "/swagger-www")
@Api(tags = {"swagger字段注释"})
public class SwaggerController {

    @ApiResponses({
            @ApiResponse(code = 200, message = "ok", response = DepotHeadVo4List.class)
    })
    @PostMapping(value = "showDepotHead")
    @ApiOperation(value = "swagger-采购/销售表头")
    public BaseResponseInfo showDepotHead(HttpServletRequest request) throws Exception {

        return null;
    }
    @ApiResponses({
            @ApiResponse(code = 200, message = "ok", response = DepotItemVo4WithInfoEx.class)
    })
    @PostMapping(value = "showDepotDetail")
    @ApiOperation(value = "swagger-采购/销售明细")
    public BaseResponseInfo showDepotDetail(HttpServletRequest request) throws Exception {

        return null;
    }


    @ApiResponses({
            @ApiResponse(code = 200, message = "ok", response = AccountHeadVo4ListEx.class)
    })
    @PostMapping(value = "showAccountHead")
    @ApiOperation(value = "swagger-财务表头")
    public BaseResponseInfo showAccountHead(HttpServletRequest request) throws Exception {

        return null;
    }
    @ApiResponses({
            @ApiResponse(code = 200, message = "ok", response = AccountItemVo4List.class)
    })
    @PostMapping(value = "showAccountDetail")
    @ApiOperation(value = "swagger-财务明细")
    public BaseResponseInfo showAccountDetail(HttpServletRequest request) throws Exception {

        return null;
    }
}
